package com.qianfeng.zhangwei.sharepush.push;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.qianfeng.zhangwei.sharepush.R;

import java.util.Timer;
import java.util.TimerTask;

public class PushActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_push);
    }
    private void pullMsg(){

        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                //去服务器请求接口,获取数据
            }
        },0,2*1000);




    }



}
